]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
xdndHandler: Add the dummy actor to the uiGroup
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 15 Feb 2013 06:58:21 +0000 (01:58 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 18 Feb 2013 19:47:17 +0000 (14:47 -0500)
While this isn't too urgent, since this won't break if we don't have
a drag actor, I was wondering what the other child in my stage was.

js/ui/xdndHandler.js

index 8a24bc2d6475bcfc6ebdbfa24320a70a4f5d95a4..ee523358d8103a57e0911dd8215d5acae542ceca 100644 (file)
@@ -2,6 +2,7 @@
 
 const Clutter = imports.gi.Clutter;
 const Lang = imports.lang;
+const Main = imports.ui.main;
 const Shell = imports.gi.Shell;
 const Signals = imports.signals;
 const DND = imports.ui.dnd;
@@ -16,7 +17,7 @@ const XdndHandler = new Lang.Class({
 
         // Used as a drag actor in case we don't have a cursor window clone
         this._dummy = new Clutter.Rectangle({ width: 1, height: 1, opacity: 0 });
-        global.stage.add_actor(this._dummy);
+        Main.uiGroup.add_actor(this._dummy);
         Shell.util_set_hidden_from_pick(this._dummy, true);
         this._dummy.hide();